﻿/**
 * Peter
 * Created by: Peter Development Team
 *    http://peter.codeplex.com/
 * 
 * GNU General Public License version 2 (GPLv2)
 *    http://peter.codeplex.com/license
 *
 *  This code is provided on an AS IS basis, with no WARRANTIES,
 *  CONDITIONS or GUARANTEES of any kind.
 *
 **/
using System.Windows.Navigation;
using System.Diagnostics;

namespace Peter.View
{
   /// <summary>
   /// Interaction logic for ViewAbout.xaml
   /// </summary>
   public partial class ViewAbout
   {
      /// <summary>
      /// Initializes a new about dialog.
      /// </summary>
      public ViewAbout ()
      {
         InitializeComponent ();
      }

      /// <summary>
      /// Occurs when a hyperlink is clicked.
      /// </summary>
      /// <param name="sender">Hyperlink object.</param>
      /// <param name="e">RequestNavigateEventArgs</param>
      private void Hyperlink_Request (object sender, RequestNavigateEventArgs e)
      {
         Process.Start (new ProcessStartInfo (e.Uri.AbsoluteUri));
         e.Handled = true;
      }
   }
}
